﻿using System;

// Token: 0x020001E6 RID: 486
public class AimAction : ShooterAction
{
	// Token: 0x06000A5B RID: 2651 RVA: 0x0005A7F2 File Offset: 0x000589F2
	public AimAction(EntityBase target)
	{
		this.name = "Aim";
		this.target = target;
	}

	// Token: 0x06000A5C RID: 2652 RVA: 0x0005A80C File Offset: 0x00058A0C
	public override void StartAction()
	{
		this.shooterController = this.agent.gameObject.GetComponent<AIShooterController>();
		this.shooterController.SetAimTarget(this.target);
	}

	// Token: 0x06000A5D RID: 2653 RVA: 0x000597B1 File Offset: 0x000579B1
	public override bool IsCompleted()
	{
		return this.hasStarted;
	}

	// Token: 0x06000A5E RID: 2654 RVA: 0x0005A835 File Offset: 0x00058A35
	public override void Interrupt()
	{
		this.shooterController.StopAiming();
	}

	// Token: 0x04000FAA RID: 4010
	private EntityBase target;
}
